import { Injectable } from '@angular/core';
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';

@Plugin({
  pluginName: 'AppManager',
  plugin: 'cordova-plugin-appmanager', // npm App name, example: cordova-plugin-camera
  pluginRef: 'plugins.appManager',  //必须跟 platforms/android/assets/cordova_plugins.js中的clobbers的变量名称一致，区分大小写
  platforms: ['Android'], // Array of platforms supported, example: ['Android', 'iOS']
})
@Injectable()
export class AppManager extends IonicNativePlugin {

  @Cordova()
  query(installedApps: boolean): Promise<any> {return;}

  @Cordova()
  list(): Promise<any> {return;}
}